/* 
 *  @module Raider
 *  Author: Alex Hu
 *
 *  Example:
 *
 *
 */


'use strict';

GML.Raider = (function(){
    
    var R = {};

    /*
    R.init = function(){
        var that = R;
        that.hunt();
    }
    */

    R.hunt = function(){
        var TM = $.parseJSON($('#treasureMap').text())
            , treasure
            ;

        if(TM){
            treasure = GML.Treasures[TM.ID];
            if(treasure){
                treasure.mine(TM.config);
            }
        }
    }

    // R.init();
    return R;

})();

